<include file="Common:header" />
<!-- /. NAV SIDE  -->
<include file="Common:left" />
<!-- /. NAV SIDE  -->
<div id="page-wrapper">
    <div class="header">
        <h1 class="page-header">
            综合查询 <small>Welcome {$Think.config.system_tag}</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="{:U('Index/index')}">首页</a></li>
            <li class="active">小班课列表</li>
            <div style="float:right"></div>
        </ol>
    </div>
    <div id="page-inner">
        <div class="row">
            <div class="col-xs-12">
                <!--Search content-->
                <div class="panel panel-default" style="margin-bottom:0px; border-bottom:none">
                    <div class="panel-body">
                        <form class="layui-form" action="{:U('Query/classOrderList')}" method="post">
                            <div class="layui-form-item">
                                <label class="layui-form-label" style="width:auto;">所属场馆</label>
                                <div class="layui-input-inline">
                                    <select name="store_id" lay-verify="">
                                        <option value="">请选择</option>
                                        <notempty name="storeList">
                                            <volist name="storeList" id="vo">
                                                <option value="{$vo.id}" <if
                                                    condition="($filter['store_id'] eq $vo['id'])">selected</if>
                                                    >{$vo.title}</option>
                                            </volist>
                                        </notempty>
                                    </select>
                                </div>
                                <label class="layui-form-label" style="width:auto;">所属教练</label>
                                <div class="layui-input-inline">
                                    <select name="coach_id" lay-verify="">
                                        <option value="">请选择</option>
                                        <notempty name="coachList">
                                            <volist name="coachList" id="vo">
                                                <option value="{$vo.id}" <if
                                                    condition="($filter['coach_id'] eq $vo['id'])">selected</if>
                                                    >{$vo.name}</option>
                                            </volist>
                                        </notempty>
                                    </select>
                                </div>
                                <label class="layui-form-label" style="width:auto;">课程名称</label>
                                <div class="layui-input-inline">
                                    <input value="{$filter.title}" type="text" name="title" placeholder="请输入课程名称"
                                        autocomplete="off" class="layui-input">
                                </div>
                                <label class="layui-form-label" style="width:auto;">用户名称</label>
                                <div class="layui-input-inline">
                                    <input value="{$filter.user_name}" type="text" name="user_name"
                                        placeholder="请输入用户名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label" style="width:auto;">手机号</label>
                                <div class="layui-input-inline">
                                    <input value="{$filter.mobile}" type="text" name="mobile" placeholder="请输入手机号"
                                        autocomplete="off" class="layui-input">
                                </div>
                                <label class="layui-form-label" style="width:auto;">日期</label>
                                <div class="layui-input-inline">
                                    <input id="addtime_fromdate" value="{$filter.addtime_fromdate}" type="text"
                                        name="addtime_fromdate" placeholder="请输入下单起始时间" autocomplete="off"
                                        class="layui-input">
                                </div>
                                <div class="layui-input-inline">
                                    <input id="addtime_todate" value="{$filter.addtime_todate}" type="text"
                                        name="addtime_todate" placeholder="请输入下单结束时间" autocomplete="off"
                                        class="layui-input">
                                </div>
                                <div class="layui-input-inline" style="width:auto;">
                                    <button type="submit" class="btn btn-default">搜索</button>
                                </div>
                                <div class="layui-input-inline" style="width:auto;">
                                    <button type="submit" class="btn btn-default" name="export" value="导出">导出</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <!--Search content-->
                <!--Formlist content-->
                <div class="panel panel-default">
                    <div class="panel-body">
                        <div class="table-responsive">
                            <table class="table table-hover">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>所属场馆</th>
                                        <th>课程</th>
                                        <th>教练</th>
                                        <th>教室</th>
                                        <th>用户</th>
                                        <th>预约次数</th>
                                        <th>状态</th>
                                        <th>预约时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <volist name="list" id="vo">
                                        <tr>
                                            <td style="line-height:30px">{$vo.id}</td>
                                            <td style="line-height:30px">{$vo.store_name}</td>
                                            <td style="line-height:30px">{$vo.title}</td>
                                            <td style="line-height:30px">{$vo.coach_name}</td>
                                            <td style="line-height:30px">{$vo.classroom_name}</td>
                                            <td style="line-height:30px">{$vo.user_name}</td>
                                            <td style="line-height:30px">{$vo.nums|default='0'}</td>
                                            <td style="line-height:30px">
                                                <if condition="$vo.status eq 0">
                                                    未预约
                                                    <elseif condition="$vo.status eq 1" />
                                                    已预约
                                                    <elseif condition="$vo.status eq 2" />
                                                    已订
                                                    <elseif condition="$vo.status eq 3" />
                                                    排队
                                                    <elseif condition="$vo.status eq 4" />
                                                    请假
                                                    <elseif condition="$vo.status eq 5" />
                                                    取消
                                                </if>
                                            </td>
                                            <td style="line-height:30px">{$vo.addtime}</td>
                                            <td>
                                                <if condition="$vo.status eq 1 || $vo.status eq 3">
                                                    <!--<a href="javascript:void(0)" class="layui-btn layui-btn-xs layui-btn-normal" onclick="openlayer('请假','{:U('Course/leaveCourse',array('id'=>$vo['id']))}');return false;">请假</a>-->
                                                    <a href="javascript:void(0)"
                                                        class="layui-btn layui-btn-xs layui-btn-danger"
                                                        onclick="ajaxConfirm('确定要签到吗?','{:U('Course/signCourse',array('id'=>$vo['id']))}')">签到</a>
                                                    <a href="javascript:void(0)"
                                                        class="layui-btn layui-btn-xs layui-btn-danger"
                                                        onclick="ajaxConfirm('确定要取消吗?','{:U('Course/cancelUserCourse',array('id'=>$vo['id']))}')">取消</a>
                                                </if>
                                                <if condition="$vo.status eq 4">
                                                    <a href="javascript:void(0)"
                                                        class="layui-btn layui-btn-xs layui-btn-normal"
                                                        onclick="ajaxConfirm('确定要取消吗?','{:U('Course/cancelLeaveCourse',array('id'=>$vo['id']))}');">取消请假</a>
                                                </if>
                                            </td>
                                        </tr>
                                    </volist>
                                </tbody>
                            </table>
                            {$page}
                        </div>
                    </div>
                </div>
                <!--Formlist content-->
            </div>
        </div>
    </div>
    <include file="Common:foot" />
    <script>
        layui.use('form', function () {
            var form = layui.form;
        });
    </script>
    <!-- /. PAGE INNER  -->
</div>
<<<<<<< HEAD <include file="Common:footer" />

=======
<include file="Common:footer" />
>>>>>>> ed045ea8b7003768c83143369cbb0f62106d83a9